import framework.eventsource
import datetime as dt

def get_events():
    return HelloWorld().get_events()

class HelloWorld(framework.eventsource.EventSource):
    
    def get_events(self):
        return [
            framework.event.Event(
                title='Hello, world!',
                start_datetime=_now(),
                end_datetime=_tomorrow(),
                description='Your dog\'s invited, too!',
                price='free'
            )
        ]

def _now():
    return dt.datetime.now()

def _tomorrow():
    return dt.datetime.now() + dt.timedelta(1)
